<div class="content_top">
  <div class="primary_heading">
    <h1>Basic Settings</h1>
  </div>
</div>
<div class = "items_wrapper">
  <%= form_for(:settings, url: '/settings', remote: true ,novalidate: "", id: "sub_user_form") do %>
  <div class="settings_form">
    <div class="content_middle">
      <div class="fields_content">
        <div class="fields_content_container basic">
          <div class="fields_content_data">

            <div class="field_row">
              <div class="label_field left single"><%= t('views.settings.multi_currency')  %></div>
              <div class="large_field">
                <input type="checkbox" name="currency_select" data-off-title="Off" data-on-color="success" data-on-title="On"  class="currency_select"  <%= "checked" if current_user.settings.currency.present? and current_user.settings.currency == "On" %>  >
              </div>
            </div>

            <div class="field_row">
              <div class="label_field left single"><%= t('views.settings.date_format')  %></div>
              <div class="large_field">
                <%= select_tag "date_format", options_for_select(DATE_FORMATS, :selected => current_user.settings.date_format) %>
              </div>
            </div>

            <div class="field_row">
              <div class="label_field left single"><%= t('views.settings.records_per_page')  %></div>
              <div class="large_field">
                <%= select_tag "records_per_page", options_for_select(LINES_PER_PAGE, :selected => current_user.settings.records_per_page) %>
              </div>
            </div>

            <div class="field_row">
              <div class="label_field left single"><%= t('views.settings.language')  %></div>
              <div class="large_field">
                <%= select_tag "locale", options_for_select(get_available_languages, :selected => current_user.settings.language) %>
              </div>
            </div>

          </div>
          <!--fields_content_data-->
        </div>
        <!--fields_content_container-->
      </div>
    </div>
    <div class="content_bottom">
          <%= submit_tag t('views.common.save'), class:  "btn_large submit submit_currency" %>
    </div>
  </div>
</div>
<% end %>
<script> $(':checkbox').checkboxpicker();</script>
